<?php echo $this->load->view('_elements/navigate'); ?>

<div id="content">
	<div id="rgLeftContent">
		<div id="rgTitle" class="titleI">You do not pay a fee to Register!</div>
		<?php echo $this->load->view('_elements/byJoining'); ?>
		<div id="rgLeftBottom" class="blockstyle"></div>
	</div>   
        <div id="rgCenterContent">
            <div id="rgTitle" class="titleI"><?php echo $Title; ?></div>

            <div id="rgForm" class="blockstyle form">
            
            	<?php echo form_open($this->curl . '/registration', 'id="myform" name="myform" autocomplete="off"')?>
                 
            	<?php echo $this->validation->error_string?>
            	
                <div id="rgFirstName" class="formElement">
                    <div class="blue formText"><?php echo $this->user_model->fields['first_name']; ?></div>
                    <?php echo form_input('first_name', $this->validation->first_name, 'class="formInput"')?>
                </div>
                <div id="rgLastName" class="formElement">
                    <div class="blue formText"><?php echo $this->user_model->fields['last_name']; ?></div>
                    <?php echo form_input('last_name', $this->validation->last_name, 'class="formInput"')?>
                </div>
				<div id="rgNickName" class="formElement">
                    <div class="blue formText"><?php echo $this->user_model->fields['nickname']; ?></div>
                    <?php echo form_input('nickname', $this->validation->nickname, 'class="formInput"')?>
                </div>
                <div id="rgType" class="formElement height_20" >
                    <div class="blue formText"><?php echo $this->user_model->fields['acl_role']; ?></div>
                    <div class="rmargin_35">
                    	<input type="radio" name="acl_role" value="3" <?php echo set_radio('acl_role', '3', TRUE,'style="margin-right: 10px;"'); ?>/></input>
                    	<?php echo T_('User');?>
                    </div>
                    <div>
                    	<input type="radio" name="acl_role" value="4" <?php echo set_radio('acl_role', '4', FALSE,'style="margin-right: 10px;"'); ?>/></input>
                    	<?php echo T_('Journalist');?>
                    </div>
                </div>
                <div id="rgEmail" class="formElement clear">
                    <div class="blue formText"><?php echo $this->user_model->fields['email']; ?></div>
                    <?php echo form_input('email', $this->validation->email, 'class="formInput"')?>
                </div>
                <div id="rgConfirmEmail" class="formElement">
                    <div class="blue formText"><?php echo $this->user_model->fields['email_confirm']; ?></div>
                    <?php echo form_input('email_confirm', $this->validation->email_confirm, 'class="formInput"')?>
                </div>
                <div id="rgEmailAbout" class="formElement">
                    <div class="lightred justify"><?php echo T_('You will use your e-mail to login to HN so we must make sure there are no typos; same reason for confirming password.')?></div>
                </div>
                <div id="password" class="formElement">
                    <div class="blue formText"><?php echo $this->user_model->fields['password']; ?></div>
                    <?php echo form_password('password', $this->validation->password, 'class="formInput"')?>
                </div>
                <div id="confirmPassword" class="formElement">
                    <div class="blue formText"><?php echo $this->user_model->fields['password_confirm']; ?></div>
                    <?php echo form_password('password_confirm', $this->validation->password_confirm, 'class="formInput"')?>
                </div>
                <div class="formElement" id="captcha">
                    <img class="captcha" src="<?= rtrim(site_url(''), '/').'/captcha/image/'.set_value('captcha_id', $this->session->userdata('session_id'));?>" alt="captcha"  style =" margin :10px "/><br />
    				<input name="captcha_id" value="<?= set_value('captcha_id', set_value('captcha_id', $this->session->userdata('session_id')));?>" type="hidden" />    				
         			<?php echo form_input('captcha_code', '', 'class="input-text formInput" style="width: auto;"')?>
                </div>
                <input id="rgContinue" class="red buttonStyle" type="submit" value="<?php echo T_('CONTINUE'); ?>" name="register" />
            
            	<?php echo form_close()?>
            	
            </div>
        </div>
        <div style="float:left; height:540px; position: relative; margin: 0 0 8px; width: 106px;">
        <?php echo $this->load->view('_elements/Followrefs'); ?>
        <div id="emblem"></div>
        </div>
</div>